import React from 'react'

interface ChatPanelProps {
  roomId: string
}

const ChatPanel: React.FC<ChatPanelProps> = ({ roomId }) => {
  // 确保所有代码路径都有返回值
  if (!roomId) {
    return <div>房间ID无效</div>
  }

  return (
    <div className="chat-panel">
      {/* 聊天界面实现 */}
      <div>聊天面板内容</div>
    </div>
  )
}

export default ChatPanel
